﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Media;

namespace NodeGardenSl.ViewModels
{
    public class Item
    {

        public string Name { get; set; }
       
        public SolidColorBrush TextBrush
        {
            get
            {

                if (Name.Contains("http"))
                {
                    return new SolidColorBrush(Colors.Blue);
                }
                else
                {
                    if (HasImportantOutput())
                        return new SolidColorBrush(Colors.Yellow);
                    else
                        return new SolidColorBrush(Colors.White);
                }
            }
        }


        internal bool HasImportantOutput()
        {
            string nameToLower = this.Name.ToLower();
            if (nameToLower.Contains("wpug") ||
                nameToLower.Contains("alphalabs") ||
                 nameToLower.Contains("nokia"))
            {
                return true;
            }
            else
            {
                return false;
            }
        }
    }

}
